// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// eslint-disable-next-line import/no-duplicates
import Vant from 'vant'
import 'vant/lib/index.css'
// eslint-disable-next-line import/no-duplicates
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
// eslint-disable-next-line import/no-duplicates
import { Swipe, SwipeItem } from 'mint-ui'
// eslint-disable-next-line import/no-duplicates
import store from './store'
import VuePreview from 'vue2-preview'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VDistpicker from 'v-distpicker'
Vue.component('v-distpicker', VDistpicker)
Vue.use(ElementUI)
Vue.prototype.$http = axios
Vue.use(VuePreview)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.use(Mint)
Vue.config.productionTip = false
Vue.use(Vant)
/* eslint-disable no-new */
// Vue.prototype.$EventBus = new Vue()
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
